<!DOCTYPE html>
<html>
  <head>
    <title>费用列表</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <link rel="stylesheet" href="${s.base}/mobile/css/weui.min.css">
    <link rel="stylesheet" href="${s.base}/mobile/css/jquery-weui.min.css">
    <link rel="stylesheet" href="${s.base}/mobile/css/oldbase.css">
    <link rel="stylesheet" href="${s.base}/mobile/css/logList.css">
  </head>
  <body>  
   <div class="xyg-content">
  		 <div class="weui-cells__title margin-top-0">费用记录</div>

  </div>

  </body>
  <script src="${s.base}/mobile/js/jquery-2.1.4.js"></script>
  <script src="${s.base}/mobile/js/jquery-weui.js"></script>
  <script src="${s.base}/mobile/fonts/iconfont.js"></script>
  <script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script>
  <script src="${s.base}/mobile/js/base.js?1234545454"></script>

  <!--js分享代码开始-->
  <input type="hidden" value="${jSTicketShareResponse.appid}" id="appid" />
  <input type="hidden" value="${jSTicketShareResponse.fxTitle}" id="fxTitle" />
  <input type="hidden" value="${jSTicketShareResponse.fxImgUrl}" id="fxImgUrl" />
  <input type="hidden" value="${jSTicketShareResponse.fxDesc}" id="fxDesc" />
  <input type="hidden" value="${jSTicketShareResponse.fxUrl}" id="fxUrl" />
  <input type="hidden" value="${jSTicketShareResponse.nonceStr}" id="nonceStr" />
  <input type="hidden" value="${jSTicketShareResponse.timestamp}" id="timestamp" />
  <input type="hidden" value="${jSTicketShareResponse.signature}" id="signature" />
  <script src="${s.base}/mobile/js/share.js"></script>
  <!--js分享代码结束-->
  <script>
      var memberId='${memberId}';
      var num=10;
      var loading = false;  //状态标记
      var pageStart=0;
      $(document).ready(function(e) {
          sendPost();
          $(document.body).infinite();
          $(document.body).infinite().on("infinite", function() {
              if(loading) return;
              loading = true;
              sendPost();
          });
      });

      function sendPost() {
          pageStart++;
          $.post("/phone/recoveryRecordIntegralJsonList",{
              pageSize : num,
              pageNum: pageStart,
              memberId : memberId
          },function(resultInfo){
              if (resultInfo.code == 0){
                  var result = '';
                  if (resultInfo.data!=null && resultInfo.data.length > 0){
                      for(var i=0;i<resultInfo.data.length;i++){
                          var recoveryRecord = resultInfo.data[i];
                          var content='<div class="weui-media-box weui-media-box_text">\
                              <div class="weui-flex">\
                              <div class="weui-flex__item">\
                              <div class="placeholder xyg-money-font4">费用'+recoveryRecord.money+'</div>\
                              <div class="placeholder xyg-money-font1">\
                              '+recoveryRecord.createTimeStr+'\
                              </div>\
                              </div>\
                              <div>\
                              <div class="placeholder" style="color:#C88B90; font-size:14px; line-height:1.6rem;">';

                          content+= recoveryRecord.description+'</div>\
                              </div>\
                              <div>\
                              </div>\
                              </div>\
                              </div>';

                          $(".xyg-content").append(content);
                          loading = false;
                          if(!resultInfo.hasNextPage){
                              $(document.body).destroyInfinite();
                              $(".xyg-product-list_loadmore").hide();
                          }
                      }
                  }else{
                      $(document.body).destroyInfinite();
                      $(".xyg-product-list_loadmore").hide();
                  }
              }
          },"json");
      }
  </script>
</html>

